package com.yanqu.road.server.timer.zhenhuan;

import com.yanqu.road.server.manager.activity.zhenhuan.CrossZhenHuanMgr;
import com.yanqu.road.utils.executor.GeneralTask;

public class CrossZhenHuanPromotionTask extends GeneralTask {
    private static boolean running = false;
    @Override
    public void doRun() {
        if (!running) {
            running = true;
            try {
                CrossZhenHuanMgr.promotionTask();
                CrossZhenHuanMgr.syncPromotionTask();
            } catch (Exception e) {
                getLOGGER().error(e);
            }finally {
                running = false;
            }
        }
    }
}
